public class test3 {
    public static void main(String[] args) {
        Thread t1=new Thread(()->{
            try {
                Thread.sleep(1000);
                System.out.println("hello thread");
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        });
t1.start();
        System.out.println("hello main");
    }
}
